<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">

<title>My Car Shopee</title>
<%@ include file="/templates/commonHeader.jsp"%>
</head>

<body>

		<%@ include file="/templates/commonMenu.jsp"%>



	<div class="container">

		<c:choose>
			<c:when test="${ not (empty (sessionScope.productsList)) }">

				<table class="table table-striped table-bordered table-hover">
					<thead style="background-color: #D8D8D8;">
						<tr>
							<td><h4>Product Name</h4></td>
							<td><h4>Product Vendor</h4></td>
							<td><h4>Price</h4></td>
							<td><h4>Image</h4></td>
							<td><h4>Action</h4></td>
						</tr>
					</thead>

					<tbody>

						<c:forEach items="${sessionScope.productsList}" var="car">
							<tr>
								<td><strong> ${car.productName } </strong></td>
								<td><strong>${car.productVendor }</strong></td>
								<td><strong> ${car.buyPrice } </strong></td>
								<td><strong> NOT AVAILABLE </strong></td>
								<td><strong> <a href="buy?"
										class="btn btn-success btn-sm"> BUY </a> <a href="moreInfo?"
										class="btn btn-default btn-sm"> Details </a></strong></td>
							</tr>
						</c:forEach>
					</tbody>

				</table>

			</c:when>

			<c:otherwise>
				<div class="jumbotron">
					<h2>There is No Products match your Search Criteria at this
						point , <a href="search.jsp">  Please refine your search.</a></h2>

					 


				</div>

			</c:otherwise>
		</c:choose>

	</div>
	<!-- /.container -->
<%@ include file="/templates/commonFooter.jsp"%>

	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
	<!-- Latest compiled and minified JavaScript -->
	<script
		src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
</body>
</html>
